{include 'admin/layout/header_list'}
<script id="asd"  type="text/html" >
    <div>{src}</div>
</script>
<link rel="stylesheet" href="__ADMIN_STATIC__/css/addContent.css?random={extendSetting('random')}">
<div class="addcontent">
    <form class="ajaxForm" method="post">
        <input type="hidden" name="_method" value="post">
        <table class="table">
            <tr>
                <td class="tl">
                    <span><strong>* </strong>广告名称</span>
                </td>
                <td>
                    <input class="long" type="text" name="name" value="">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong>* </strong>广告类型</span>
                </td>
                <td>
                    <p class="article-status">
                        <input id="type1" name="type" value="1" type="radio" checked >图片
                    </p>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>广告位</span>
                </td>
                <td>
                    <select name="positionId" class="long">
                        <option value="">选择广告位</option>
                        {if $adManageKeyVal}
                        {foreach $adManageKeyVal $key $val}
                        <option value="{$key}">{$val}</option>
                        {/foreach}
                        {/if}
                    </select>
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>链接地址</span>
                </td>
                <td>
                    <input class="long" type="text" name="link" value="">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>排序</span>
                </td>
                <td>
                    <input class="" type="number" name="sortWeights" value="1">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>有效期</span>
                </td>
                <td>
                    <input autocomplete="off" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" id="datamin" name="startTime"  class="searchInput lb-input-sm Wdate" style="width:180px;">
                    -&nbsp;&nbsp;&nbsp;
                    <input autocomplete="off" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" id="datamax" name="endTime" class="searchInput lb-input-sm Wdate" style="width:180px;">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>广告描述</span>
                </td>
                <td>
                    <input class="introduce" type="text" name="description" value="">
                </td>
            </tr>
            <tr>
                <td class="tl">
                    <span><strong> </strong>广告内容</span>
                </td>
                <td class="webUploadBox">
                    <input class="long rendercls" name="content1" type="text" value="">
                    <div class="webUploadFilePicker">选择图片</div>
                    <span class="upload" id="clear">[删除]</span>
                </td>
            </tr>
        </table>
    </form>
    <div class="yifang-button">
        <button class="btns submit ajaxBtn" type="button" data-submit-url="{YIFANG_ROUTE_PREFIX}/adManage" data-form=".ajaxForm" data-location-url="{YIFANG_ROUTE_PREFIX}/adManage/index" data-close="5">
            确认添加
        </button>
        <button class="btns cancel">取消并返回</button>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/addContent.js?random={extendSetting('random')}"></script>
{include 'admin/layout/file_upload_script_auto'}
{include 'admin/layout/footer'}